<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ include file="../common/beforeContent_inner.jsp"%>

<input type="hidden" id="detailView" value="${detail}">

<div class="easyui-panel edit-panel" >
    <div class="toolbar edit-toolbar">
        <a href="javascript:void(0)" plain="true" class="easyui-linkbutton toolbar-undo" icon="icon-undo" title="返回"  onclick="dbdatatype_edit.close()">返回</a>
        <c:if test="${!detail}">
            <a href="javascript:void(0)" plain="true" class="easyui-linkbutton toolbar-save" icon="icon-ok" title="保存"  onclick="dbdatatype_edit.saveHandler()">保存</a>
        </c:if>
        </div>
</div>
<form id="dbDatatypeEditForm" class="easyui-panel easyui-form">
    <input type="hidden" name="id" value="${data.id}">
    <table>
        <tr>
            <td class="text-right">
                <label>数据库类型：</label>
            </td>
            <td class="text-left">
                <input name="dbType" class="easyui-combobox"
                       data-options="required:true,
                        valueField:'id',
                        textField:'text',
                        editable:false ,
                        panelHeight:'auto',
                        value : '${data.dbType}' ,
                        url:'/dictionary/easyui/dbtype'">
            </td>

            <td class="text-right">
                <label>类型名称：</label>
            </td>
            <td class="text-left">
                <input name="type" type="text" class="easyui-textbox"
                       data-options="required:true,validType:'length[1,255]'"
                       value="${data.type}">
            </td>
        </tr>
        <tr>
            <td class="text-right">
                <label>实体属性类型：</label>
            </td>
            <td class="text-left">
            </td>
        </tr>

        <tr>
            <td class="text-right">
                <label>默认长度：</label>
            </td>
            <td class="text-left">
                <input name="length" type="text" class="easyui-textbox"
                       data-options="required:false,validType:'length[1,2000]'"
                       value="${data.length}">
            </td>

            <td class="text-right">
                <label>默认小数位数：</label>
            </td>
            <td class="text-left">
                <input name="decimalLength" type="text" class="easyui-textbox"
                       data-options="required:false,validType:'length[0,10]'"
                       value="${data.decimalLength}">
            </td>

            <td class="text-right">
                <label></label>
            </td>
            <td class="text-left">
            </td>
        </tr>

        <tr>
            <td class="text-right">
                <label>备注：</label>
            </td>
            <td class="text-left" colspan="5">
                <input name="remark" type="text" class="easyui-textbox" style="width: 100%;"
                       data-options="required:false,multiline:true,validType:'length[1,2000]'"
                       value="${data.remark}">
            </td>
        </tr>

    </table>


</form>



<%@ include file="../common/javascript_inner.jsp"%>

<script type="text/javascript" src="${ctx}/resources/js/core/datatype/dbdatatype_edit.js"></script>


<%@ include file="../common/afterContent_inner.jsp"%>